/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 福利Entity
 * @author jyangye
 * @version 2018-01-10
 */
public class ViEmpSSubsidy extends DataEntity<ViEmpSSubsidy> {
	
	private static final long serialVersionUID = 1L;
	private String post;		// 岗位
	private String compId;		// 组织机构
	private Double trafficSubsidy;		// 交通补贴
	private Double livingSubsidy;		// 住房补贴
	private Double holidaySubsidy;		// 高温/节日补贴
	private Double carSubsidy;		// 车贴
	private Integer year;		// 年份
	private Integer month;		// 月份

    private Office comp;
	
	public ViEmpSSubsidy() {
		super();
	}

	public ViEmpSSubsidy(String id){
		super(id);
	}

	@Length(min=1, max=32, message="岗位长度必须介于 1 和 32 之间")
	@ExcelField(title="*岗位", align=2, sort=20)
	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

    @ExcelField(title="组织机构", align=2, sort=30)
    public Office getComp() {
        return comp;
    }

    public void setComp(Office comp) {
        this.comp = comp;
    }

	public String getCompId() {
		return compId;
	}

	public void setCompId(String compId) {
		this.compId = compId;
	}
	
	@ExcelField(title="交通补贴", align=2, sort=40)
	public Double getTrafficSubsidy() {
		return trafficSubsidy;
	}

	public void setTrafficSubsidy(Double trafficSubsidy) {
		this.trafficSubsidy = trafficSubsidy;
	}
	
	@ExcelField(title="住房补贴", align=2, sort=50)
	public Double getLivingSubsidy() {
		return livingSubsidy;
	}

	public void setLivingSubsidy(Double livingSubsidy) {
		this.livingSubsidy = livingSubsidy;
	}
	
	@ExcelField(title="高温/节日补贴", align=2, sort=60)
	public Double getHolidaySubsidy() {
		return holidaySubsidy;
	}

	public void setHolidaySubsidy(Double holidaySubsidy) {
		this.holidaySubsidy = holidaySubsidy;
	}
	
	@ExcelField(title="车贴", align=2, sort=70)
	public Double getCarSubsidy() {
		return carSubsidy;
	}

	public void setCarSubsidy(Double carSubsidy) {
		this.carSubsidy = carSubsidy;
	}
	
	@Length(min=0, max=11, message="年份长度必须介于 0 和 11 之间")
	@ExcelField(title="*年份", align=2, sort=80)
	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}
	
	@Length(min=0, max=11, message="月份长度必须介于 0 和 11 之间")
	@ExcelField(title="*月份", align=2, sort=90)
	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}
}